<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('专家变动批次列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row" id="shenhelist_shenhe">

        <!--登录信息-->
        <input name="userid" th:value="${session.userid}" type="hidden" id="userid">
        <input name="username" th:value="${session.username}" type="hidden" id="username">
        <input name="deptid" th:value="${session.deptid}" type="hidden" id="deptid">
        <input name="olddeptid" th:value="${session.olddeptid}" type="hidden" id="olddeptid">

        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            <label>审核状态：</label>
                            <select class="form-control" v-model="shenhezhuangtai">
                                <option value="99">全部</option>
                                <option value="0">待审核</option>
                                <option value="1">已通过</option>
                                <option value="2">未通过</option>
                            </select>
                        </li>
                        <li>
                            <label>单位名称：</label>
                            <input type="text" name="jigoumingcheng" v-model="jigoumingcheng"/>
                        </li>
                        <li>
                            <label>专家姓名：</label>
                            <input type="text" name="zhuanjiaxingming" v-model="zhuanjiaxingming"/>
                        </li>
                        <li>
                            <label>提交时间：</label>
                            <input type="text" class="" placeholder="请选择提交开始日期" name="renwuxiafashijian" id="renwuxiafashijian1_chaxun" v-model="renwuxiafashijian1" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'renwuxiafashijian2_chaxun\')}'})"  @blur="getDate_chaxun"/>
                            <input type="text" class="" placeholder="请选择提交结束日期" name="renwuxiafashijian" id="renwuxiafashijian2_chaxun" v-model="renwuxiafashijian2" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'renwuxiafashijian1_chaxun\')}'})"  @blur="getDate_chaxun"/>
                        </li>
                        <li>
                            <label>审核时间：</label>
                            <input type="text" class="" placeholder="请选择审核开始日期" name="renwuwanchengshijian" id="renwuwanchengshijian1_chaxun" v-model="renwuwanchengshijian1" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'renwuwanchengshijian2_chaxun\')}'})"  @blur="getDate_chaxun"/>
                            <input type="text" class="" placeholder="请选择审核结束日期" name="renwuwanchengshijian" id="renwuwanchengshijian2_chaxun" v-model="renwuwanchengshijian2" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'renwuwanchengshijian1_chaxun\')}'})"  @blur="getDate_chaxun"/>
                        </li>
                        <li>
                            <a class="btn btn-success btn-rounded btn-md" @click="bindShenheList"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-md" @click="reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            <a class="btn btn-info btn-rounded btn-md" @click="Export()"><i class="fa fa-download"></i>导出</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="col-sm-12 select-table table-striped">

            <table class="table table-hover table-primary table-striped">
                <thead>
                <tr>
                    <th style="text-align: center; vertical-align: middle;">序号</th>
                    <th style="text-align: center; vertical-align: middle;">申请单位</th>
                    <th style="text-align: center; vertical-align: middle;">专家名称</th>
                    <th style="text-align: center; vertical-align: middle;">转自特贴管理单位</th>
                    <th style="text-align: center; vertical-align: middle;">转至特贴管理单位</th>
                    <th style="text-align: center; vertical-align: middle;">提交时间</th>
                    <th style="text-align: center; vertical-align: middle;">审批时间</th>
                    <th style="text-align: center; vertical-align: middle;">操作</th>
                </tr>
                </thead>
                <tbody>
                <tr v-for="(shenheitem,index) in shenhelist"  v-if="shenhelist.length > 0">
                    <td style="vertical-align: middle; text-align: center;" v-text="index+1"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="shenheitem.shenqingdanwei"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="shenheitem.zhuanjiamingcheng"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="shenheitem.zhuanzidanweimingcheng"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="shenheitem.zhuanzhidanweimingcheng==''?(shenheitem.beizhu4+'(非系统内单位)'):shenheitem.zhuanzhidanweimingcheng"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="shenheitem.renwuxiafashijian"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="shenheitem.renwuwanchengshijian"></td>
                    <td style="vertical-align: middle; text-align: center;" v-text="">
                        <button v-if="shenheitem.shifouwancheng==0&&shenheitem.liuchengid!='待指派'&&shenheitem.liuchengid!='待接收'" class="btn btn-warning btn-rounded btn-md" @click="ShowShenheModal(shenheitem)">审核</button>
                        <button class="btn btn-success btn-rounded btn-md" @click="toDetail(shenheitem)">查看</button>
                        <button class="btn btn-info btn-rounded btn-md" @click="showShenhejiluModel(shenheitem.shiwuid)">审核进度</button>
                        <button class="btn btn-warning btn-rounded btn-md" v-if="shenheitem.liuchengid=='待指派'" @click="toXiafa(shenheitem)">指派</button>
                        <button class="btn btn-warning btn-rounded btn-md" v-if="shenheitem.liuchengid=='待接收'&&shenheitem.zhuanzhidanwei==olddeptid" @click="Jieshou(shenheitem,1)">接收</button>
                        <button class="btn btn-danger btn-rounded btn-md" v-if="shenheitem.liuchengid=='待接收'&&shenheitem.zhuanzhidanwei==olddeptid" @click="Jieshou(shenheitem,0)">拒收</button>
                    </td>
                </tr>
                <tr v-if="shenhelist.length == 0">
                    <td style="text-align: center; vertical-align: middle" colspan="8">查无数据</td>
                </tr>
                </tbody>
            </table>
            <div v-if="recordCount != '0'" class="my-page-navigation" style="text-align:center;">
                <button class="btn btn-default" @click="firstPage">首页</button>
                <button class="btn btn-default" @click="prePage">上一页</button>
                <select class="custom-select border-secondary" v-model="pagesize">
                    <option value="10">10 条/页</option>
                    <option value="20">20 条/页</option>
                    <option value="30">30 条/页</option>
                    <option value="50">50 条/页</option>
                </select>
                <span v-text="pageindex + '  /  ' + pageCount" style="border-color: #6c757d"></span>
                <span v-text="'共' + recordCount + '条'" style="border-color: #6c757d"></span>
                <button class="btn btn-default" @click="nextPage">下一页</button>
                <button class="btn btn-default" @click="lastPage">尾页</button>
                <span style="border-color: #6c757d">跳到第</span>
                <input type="text" class="form-control border-secondary" style="width:50px;display:inline;" v-model="targetpage" @keyup.enter="targetPage">
                <span style="border-color: #6c757d">页</span>
                <button class="btn btn-default" @click="targetPage">跳</button>
            </div>
        </div>

        <div th:replace="system/renwu/modal_zhuanlishenhe::shenhe"></div>

        <!-- 查看专家变动详情信息 -->
        <div th:replace="system/zhuanjiabiandongdetail/modal_detail::biandongdetail_detail"></div>

        <!--  审核记录-->
        <div th:replace="system/renwu/modal_shenhejilu::shenhejilu"></div>

        <!--  下发-->
        <div th:replace="system/renwu/modal_Xiafa::xiafa"></div>

    </div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:src="@{/js/system/renwu/zhuanlishenhelist.js?v=1.2}"></script>
<style>
    .form-group{
        font-size: 16px;
    }
    .form-group label{
        font-weight:bold;
    }
</style>
</body>
</html>